package org.cs.mgr.before.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "goods_specification")
public class Goods_Specification {
    private String ID;
    private String GOODS_SPECIFICATION_NAME;
    private boolean GOODS_SPECIFICATION_IS_GROUP;
    private float ORIGINAL_PRICE;
    private float MEMBER_PRICE;
    private int GROUP_GOODS_PNUM;
    private int GOODS_SPECIFICATION_CREATE_TIME;
    private Timestamp GOODS_NUM;
    private Timestamp GOODS_SPECIFICATION_UPDATE_TIME;
    private String GOODS_SPECIFICATION_CREATER_ID;
    private String GOODS_SPECIFICATION_UPDATER_ID;
    private boolean GOODS_SPECIFICATION_STATUS;
    private String GOODS_ID;

    @Id
    @GenericGenerator(name="idGenerator", strategy="uuid")
    @GeneratedValue(generator="idGenerator")
    @Column(name = "ID")
    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    @Column(name = "GOODS_SPECIFICATION_NAME",  nullable=false, columnDefinition="varchar(30)")
    public String getGOODS_SPECIFICATION_NAME() {
        return GOODS_SPECIFICATION_NAME;
    }

    public void setGOODS_SPECIFICATION_NAME(String GOODS_SPECIFICATION_NAME) {
        this.GOODS_SPECIFICATION_NAME = GOODS_SPECIFICATION_NAME;
    }
    @Column(name = "GOODS_SPECIFICATION_IS_GROUP",  nullable=false, columnDefinition="tinyint(1)")
    public boolean isGOODS_SPECIFICATION_IS_GROUP() {
        return GOODS_SPECIFICATION_IS_GROUP;
    }

    public void setGOODS_SPECIFICATION_IS_GROUP(boolean GOODS_SPECIFICATION_IS_GROUP) {
        this.GOODS_SPECIFICATION_IS_GROUP = GOODS_SPECIFICATION_IS_GROUP;
    }
    @Column(name = "ORIGINAL_PRICE",  nullable=false, columnDefinition="decimal")
    public float getORIGINAL_PRICE() {
		return ORIGINAL_PRICE;
	}

	public void setORIGINAL_PRICE(float oRIGINAL_PRICE) {
		ORIGINAL_PRICE = oRIGINAL_PRICE;
	}
    
	@Column(name = "MEMBER_PRICE",  nullable=false, columnDefinition="decimal")
    public float getMEMBER_PRICE() {
		return MEMBER_PRICE;
	}
	public void setMEMBER_PRICE(float mEMBER_PRICE) {
		MEMBER_PRICE = mEMBER_PRICE;
	}
	
	@Column(name = "GOODS_ID",  nullable=false, columnDefinition="vachar(32)")
	public String getGOODS_ID() {
		return GOODS_ID;
	}
	public void setGOODS_ID(String gOODS_ID) {
		GOODS_ID = gOODS_ID;
	}

	@Column(name = "GROUP_GOODS_PNUM",  nullable=false, columnDefinition="int")
    public int getGROUP_GOODS_PNUM() {
        return GROUP_GOODS_PNUM;
    }
	public void setGROUP_GOODS_PNUM(int GROUP_GOODS_PNUM) {
        this.GROUP_GOODS_PNUM = GROUP_GOODS_PNUM;
    }
    @Column(name = "GOODS_NUM",  nullable=false, columnDefinition="int")
    public int getGOODS_SPECIFICATION_CREATE_TIME() {
        return GOODS_SPECIFICATION_CREATE_TIME;
    }

    public void setGOODS_SPECIFICATION_CREATE_TIME(int GOODS_SPECIFICATION_CREATE_TIME) {
        this.GOODS_SPECIFICATION_CREATE_TIME = GOODS_SPECIFICATION_CREATE_TIME;
    }
    @Column(name = "GOODS_SPECIFICATION_CREATE_TIME",  nullable=false, columnDefinition="timestamp")
    public Timestamp getGOODS_NUM() {
        return GOODS_NUM;
    }

    public void setGOODS_NUM(Timestamp GOODS_NUM) {
        this.GOODS_NUM = GOODS_NUM;
    }
    @Column(name = "GOODS_SPECIFICATION_UPDATE_TIME",  nullable=false, columnDefinition="timestamp")
    public Timestamp getGOODS_SPECIFICATION_UPDATE_TIME() {
        return GOODS_SPECIFICATION_UPDATE_TIME;
    }

    public void setGOODS_SPECIFICATION_UPDATE_TIME(Timestamp GOODS_SPECIFICATION_UPDATE_TIME) {
        this.GOODS_SPECIFICATION_UPDATE_TIME = GOODS_SPECIFICATION_UPDATE_TIME;
    }
    @Column(name = "GOODS_SPECIFICATION_CREATER_ID",  nullable=false, columnDefinition="varchar(32)")
    public String getGOODS_SPECIFICATION_CREATER_ID() {
        return GOODS_SPECIFICATION_CREATER_ID;
    }

    public void setGOODS_SPECIFICATION_CREATER_ID(String GOODS_SPECIFICATION_CREATER_ID) {
        this.GOODS_SPECIFICATION_CREATER_ID = GOODS_SPECIFICATION_CREATER_ID;
    }
    @Column(name = "GOODS_SPECIFICATION_UPDATER_ID",  nullable=false, columnDefinition="varchar(32)")
    public String getGOODS_SPECIFICATION_UPDATER_ID() {
        return GOODS_SPECIFICATION_UPDATER_ID;
    }

    public void setGOODS_SPECIFICATION_UPDATER_ID(String GOODS_SPECIFICATION_UPDATER_ID) {
        this.GOODS_SPECIFICATION_UPDATER_ID = GOODS_SPECIFICATION_UPDATER_ID;
    }
    @Column(name = "GOODS_SPECIFICATION_STATUS",  nullable=false, columnDefinition="tinyint(1)")
    public boolean isGOODS_SPECIFICATION_STATUS() {
        return GOODS_SPECIFICATION_STATUS;
    }

    public void setGOODS_SPECIFICATION_STATUS(boolean GOODS_SPECIFICATION_STATUS) {
        this.GOODS_SPECIFICATION_STATUS = GOODS_SPECIFICATION_STATUS;
    }
}
